$(document).ready(function () { $('.tt_tab_aff1').click(function(event) { $(".tt_tab_aff1").addClass('acc'); $(".tab_aff1_body").addClass('acc'); $(".tt_tab_aff2").removeClass("acc"); $(".tt_tab_aff3").removeClass("acc"); $(".tt_tab_aff4").removeClass("acc"); $(".tab_aff2_body").removeClass("acc"); $(".tab_aff3_body").removeClass("acc"); $(".tab_aff4_body").removeClass("acc"); }); $('.tt_tab_aff2').click(function(event) { $(".tt_tab_aff2").addClass('acc'); $(".tab_aff2_body").addClass('acc'); $(".tt_tab_aff1").removeClass("acc"); $(".tt_tab_aff3").removeClass("acc"); $(".tt_tab_aff4").removeClass("acc"); $(".tab_aff1_body").removeClass("acc"); $(".tab_aff3_body").removeClass("acc"); $(".tab_aff4_body").removeClass("acc"); }); $('.tt_tab_aff3').click(function(event) { $(".tt_tab_aff3").addClass('acc'); $(".tab_aff3_body").addClass('acc'); $(".tt_tab_aff2").removeClass("acc"); $(".tt_tab_aff1").removeClass("acc"); $(".tt_tab_aff4").removeClass("acc"); $(".tab_aff2_body").removeClass("acc"); $(".tab_aff1_body").removeClass("acc"); $(".tab_aff4_body").removeClass("acc"); }); $('.tt_tab_aff4').click(function(event) { $(".tt_tab_aff4").addClass('acc'); $(".tab_aff4_body").addClass('acc'); $(".tt_tab_aff2").removeClass("acc"); $(".tt_tab_aff3").removeClass("acc"); $(".tt_tab_aff1").removeClass("acc"); $(".tt_tab_aff2").removeClass("acc"); $(".tab_aff2_body").removeClass("acc"); $(".tab_aff3_body").removeClass("acc"); $(".tab_aff1_body").removeClass("acc"); }); }); jQuery(function($) { function fixDiv() { var $cache = $('.fxx'); if ($(window).scrollTop() > 120) $cache.css({ 'position': 'fixed', 'top': '10px' }); else $cache.css({ 'position': 'fixed', 'top': '230px' }); } $(window).scroll(fixDiv); fixDiv(); }); $(document).ready(function () { $(".tt_head_menu ul li .shows_btn").on("click", function (e) { e.preventDefault(), $(this).closest(".menu-item.menu-item-has-children").toggleClass("tt_open"); }); $(".tt_btn_close").on("click", function (e) { $("#topbar").toggleClass("tt_open"); }); $(".nav-toggle").on("click", function (e) { $(".tt_head_menu").toggleClass("active"); $(".overlay").toggleClass('active'); $(".tt_from_login").removeClass("active"); }); $(".user-toggle").on("click", function (e) { $(".tt_from_login").toggleClass("active"); $(".overlay").toggleClass('active'); $(".tt_head_menu").removeClass("active"); }); $(".tt_btn_open2").on("click", function (e) { $("#topbar2").removeClass("tt_open2"); }); $(".tt_btn_close2").on("click", function (e) { $("#topbar2").toggleClass("tt_open2"); }); $(".tt_btn_open").on("click", function (e) { $("#topbar").removeClass("tt_open"); }); $(".wpcf7-submit").on("click", function (e) { $(".overlay").addClass('active'); }); $(".overlay").on("click", function (e) { $(".overlay").removeClass('active'); $(".wpcf7-response-output").hide(); $(".tt_head_menu").removeClass("active"); $(".ct_login").removeClass("active"); }); $(".tt_close").on("click", function (e) { $(".overlay").removeClass('active'); $(".wpcf7-response-output").hide(); $(".tt_head_menu").removeClass("active"); $(".ct_login").removeClass("active"); }); $(".wpcf7-response-output").on("click", function (e) { $(".overlay").removeClass('active'); $(".wpcf7-validation-errors").hide(); $(".wpcf7-response-output").hide(); }); $(".tt_tab1").on("click", function (e) { $(".tt_tab1").addClass("active"); $(".tt_ct_tab1").addClass("active"); $(".tt_tab2").removeClass('active'); $(".tt_ct_tab2").removeClass('active'); $(".tt_tab3").removeClass('active'); $(".tt_ct_tab3").removeClass('active'); }); $(".tt_tab2").on("click", function (e) { $(".tt_tab2").addClass("active"); $(".tt_ct_tab2").addClass("active"); $(".tt_tab1").removeClass('active'); $(".tt_ct_tab1").removeClass('active'); $(".tt_tab3").removeClass('active'); $(".tt_ct_tab3").removeClass('active'); }); $(".tt_tab3").on("click", function (e) { $(".tt_tab3").addClass("active"); $(".tt_ct_tab3").addClass("active"); $(".tt_tab2").removeClass('active'); $(".tt_ct_tab2").removeClass('active'); $(".tt_tab1").removeClass('active'); $(".tt_ct_tab1").removeClass('active'); }); $(".tt_btn_lang").on("click", function (e) { $(".nav_lang").toggleClass("active"); }); $("#btnLogin").on("click", function (e) { var user = $.trim($('#txtUserName').val()); var pass = $.trim($('#password').val()); if (user === '') { alert('Username is empty.'); return false; } if (pass === '') { alert('Password is empty.'); return false; } }); }); $(function() { $(window).scroll(function() { if($(this).scrollTop() != 0) { $('#toTop').fadeIn(); } else { $('#toTop').fadeOut(); } }); $('#toTop').click(function() { $('body,html').animate({scrollTop:0},800); }); }); $(document).ready(function() { $('.bg_s .owl-carousel').owlCarousel({ loop: true, margin: 0, nav: true, responsiveClass: true, /* animateOut: 'fadeOut',*/ navText : ['',''], responsive: { 0: { items: 1 }, 600: { items: 1 }, 1000: { items: 1, margin: 0 } } }) }); $(document).ready(function() { $('.owl-carousel.slide_jp').owlCarousel({ loop: true, loop:($(".slide_jp.owl-carousel .item").length > 3) ? true: false, margin: 10, nav: true, responsiveClass: true, autoplay:3000, autoplayHoverPause:true, navText : ['',''], responsive: { 0: { items: 2 }, 600: { items: 2 }, 1000: { items: 3 } } }) }); $(document).ready(function() { $('.owl-carousel.slide_jp2').owlCarousel({ loop: true, loop:($(".slide_jp2.owl-carousel .item").length > 3) ? true: false, margin: 10, nav: true, responsiveClass: true, autoplay:3000, autoplayHoverPause:true, navText : ['',''], responsive: { 0: { items: 2 }, 600: { items: 2 }, 1000: { items: 4 } } }) }); /*============================================================================ Social Icon Buttons v1.0 Author: Carson Shold | @cshold http://www.carsonshold.com MIT License ==============================================================================*/ window.CSbuttons = window.CSbuttons || {}; $(function() { CSbuttons.cache = { $shareButtons: $('.social-sharing') } }); CSbuttons.init = function () { CSbuttons.socialSharing(); } CSbuttons.socialSharing = function () { var $buttons = CSbuttons.cache.$shareButtons, $shareLinks = $buttons.find('a'), permalink = $buttons.attr('data-permalink'); // Get share stats from respective APIs var $fbLink = $('.share-facebook'), $twitLink = $('.share-twitter'), $googleLink = $('.share-google') if ( $fbLink.length ) { $.getJSON('https://graph.facebook.com/?id=' + permalink + '&callback=?') .done(function(data) { if (data.shares) { $fbLink.find('.share-count').text(data.shares).addClass('is-loaded'); } else { } }) .fail(function(data) { }); }; if ( $twitLink.length ) { $.getJSON('https://cdn.api.twitter.com/1/urls/count.json?url=' + permalink + '&callback=?') .done(function(data) { if (data.count > 0) { $twitLink.find('.share-count').text(data.count).addClass('is-loaded'); } else { } }) .fail(function(data) { }); }; if ( $googleLink.length ) { // Can't currently get Google+ count with JS, so just pretend it loaded $googleLink.find('.share-count').addClass('is-loaded'); } // Share popups $shareLinks.on('click', function(e) { var el = $(this), popup = el.attr('class').replace('-','_'), link = el.attr('href'), w = 700, h = 400; // Set popup sizes switch (popup) { case 'share_twitter': h = 300; break; case 'share_google': w = 500; break; case 'share_reddit': popup = false; break; } if (popup) { e.preventDefault(); window.open(link, popup, 'width=' + w + ', height=' + h); } }); } $(function() { window.CSbuttons.init(); }); var hex_chr="0123456789abcdef";function rhex(num){str="";for(j=0;j<=3;j++)str+=hex_chr.charAt((num>>(j*8+4))&0x0F)+hex_chr.charAt((num>>(j*8))&0x0F);return str;}function str2blks_MD5(str){nblk=((str.length+8)>>6)+1;blks=new Array(nblk*16);for(i=0;i>2]|=str.charCodeAt(i)<<((i%4)*8);blks[i>>2]|=0x80<<((i%4)*8);blks[nblk*16-2]=str.length*8;return blks;}function add(x,y){var lsw=(x&0xFFFF)+(y&0xFFFF);var msw=(x>>16)+(y>>16)+(lsw>>16);return(msw<<16)|(lsw&0xFFFF);}function rol(num,cnt){return(num<>>(32-cnt));}function cmn(q,a,b,x,s,t){return add(rol(add(add(a,q),add(x,t)),s),b);}function ff(a,b,c,d,x,s,t){return cmn((b&c)|((~b)&d),a,b,x,s,t);}function gg(a,b,c,d,x,s,t){return cmn((b&d)|(c&(~d)),a,b,x,s,t);}function hh(a,b,c,d,x,s,t){return cmn(b^c^d,a,b,x,s,t);}function ii(a,b,c,d,x,s,t){return cmn(c^(b|(~d)),a,b,x,s,t);}function calcMD5(str){x=str2blks_MD5(str);a=1732584193;b=-271733879;c=-1732584194;d=271733878;for(i=0;i